package com.rx.mylist.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.rx.core.anno.RxRelationField;
import com.rx.core.anno.RxRelationInfo;
import com.rx.core.data.RxData;
import com.rx.core.dbase.RxMarkDbMust;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@RxData
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class ListScheduleInfo extends RxMarkDbMust {
    private static final long serialVersionUID = 1L;

    public static final String NAME = "name";
    public static final String DESCRIPTION = "description";
    public static final String COMPLETE = "complete";
    public static final String UP_COUNT = "up_count";
    public static final String DOWN_COUNT = "down_count";
    public static final String UP_HASH = "up_hash";
    public static final String DOWN_HASH = "down_hash";
    public static final String ASS_BID = "ass_bid";

    @TableField("NAME")
    private String name;
    @TableField("DESCRIPTION")
    private String description;
    @TableField("COMPLETE")
    private Integer complete;
    @TableField("UP_COUNT")
    private Integer upCount;
    @TableField("DOWN_COUNT")
    private Integer downCount;
    @TableField("UP_HASH")
    private String upHash;
    @TableField("DOWN_HASH")
    private String downHash;

    @RxRelationField(value = {
        @RxRelationInfo(tableName = "list_essay_info",fieldName = "bid",JudgeAppend="returnType=1"),
    })
    @TableField("ASS_BID")
    private String assBid;

    @TableField("REMARK")
    private String remark;

    @TableField(exist = false)
    private String upTrue;

    @TableField(exist = false)
    private String downTrue;
}
